import request from "@/utils/request";

export function findAllDevice(plateNo = '') {
    return request({
        url: `/mobile/truck/truckDeviceListByPlateNo/${plateNo}`,
        method: 'get'
    })
}

export function findAllDeviceByCustomSendBillNo(billNo) {
    return request({
        url: `/mobile/truck/truckDeviceListByCustomSendBillNo/${billNo}`,
        method: 'get'
    });
}

export function findSealNoByDeviceId(deviceId = 0) {
    return request({
        url: `/mobile/truck/findSealNoByDeviceId/${deviceId}`,
        method: 'get'
    })
}

export function findAllPlateNo(plateNo) {
    return request({
        url: '/mobile/truck/findAllPlateNo',
        method: 'get',
        params: {
            plateNo
        }
    });
}

export function findAllTruck(params) {
    return request({
        url: '/mobile/truck/list',
        method: 'get',
        params
    });
}

export function findDeviceById(id) {
    return request({
        url: `/mobile/truck/findDeviceById/${id}`,
        method: 'get'
    })
}

// 获取所有的实施人员
export function getAllOperator() {
    return request({
        url: '/mobile/truck/getAllOperator',
        method: 'get'
    })
}

